//
//  YCNormalActionSheet.h
//  DemoActionSheet
//
//  Created by tangkexiong on 16/3/16.
//  Copyright © 2016年 tangkexiong. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YCNormalActionSheet;

#pragma mark - YCNormalActionSheetCell

@interface YCNormalActionSheetCell : UITableViewCell

@property (nonatomic, weak) IBOutlet UILabel *nameLabel;
@property (nonatomic, weak) IBOutlet UIView *lineViews;

@end

#pragma mark - YCNormalActionSheet

@protocol YCNormalActionSheetDelegate <NSObject>

@optional
- (void)normalActionSheet:(YCNormalActionSheet *)actionSheet didSelectAtIndex:(NSInteger)index;
- (void)normalActionSheetDidCancel:(YCNormalActionSheet *)actionSheet;

@end

#pragma mark - YCNormalActionSheet

/**
 *  普通操作表
 */
@interface YCNormalActionSheet : UIViewController

@property (nonatomic, weak) id<YCNormalActionSheetDelegate> myDelegate;
@property (nonatomic, strong) UIColor *tintColor;

@property (weak, nonatomic) IBOutlet UIControl *bgView;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UIView *sheetView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UITableView *myTableView;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintActionSheetHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintActionSheetBottom;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintTitleViewHeight;

+ (instancetype)instanceWithTitle:(NSString *)title delegate:(id<YCNormalActionSheetDelegate>)delegate actions:(NSString *)action,...NS_REQUIRES_NIL_TERMINATION;
- (void)show;

@end
